package com.buercorp.wangyu.common;
//导包
import java.util.Scanner;

public class IfDemo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的年龄");
        int age = sc.nextInt();
        if (age > 18) {
            System.out.println("欢迎来玩游戏");
        } else {
            System.out.println("还是去做作业吧");
        }
    }
}
